function doMenu(obj, strDeep) {
    var items = obj.parentNode.getElementsByTagName("ul");
    var itemSpan = obj.getElementsByTagName("span");
    // var itemA = obj.getElementsByTagName("a");
    // console.log('itemA',itemA);
    //获取a 对象你节点li 下包含的 所有ul集合
    var itmUl;
    var deeps = strDeep; //strDeep 为当前菜单的级数
    if (items.length > 0) {
        itmUl = items[0];
    }
    if (itmUl.className != "ex") {
        cxAll();//当前节点为关闭状态时,先执行关闭所有ul子菜单
        itemSpan[0].style.transform="rotate(180deg)";
        if (deeps == '2') { //若要展开三级菜单当,还要将其二级父菜单展开
            itmUl.parentNode.parentNode.className = "ex"; 
            $('#nav span').css('transform','rotate(0deg)');
            itemSpan[0].style.transform="rotate(180deg)";
        }
        itemSpan[0].style.transform="rotate(180deg)";
        itmUl.className = "ex"; //展开下级菜单
    } else {
        itmUl.className = "cx";
        itemSpan[0].style.transform="rotate(0deg)";
    }
}
function statUp() {
    cxAll();
    var ulDom = document.getElementById("nav");
    var items = ulDom.getElementsByTagName("ul");
}
function cxAll() {
    var ulDom = document.getElementById("nav");
    var items = ulDom.getElementsByTagName("ul");
    for (var i = 0; i < items.length; i++) {
        items[i].className = "cx";
    }
}
var lineName = '';
function itemClick(obj) {
    lineName = obj.text;
    console.log('obj',obj.text);
}
// comfirm页面跳转到index
function routerIndex() {
    location.replace('index.html?lineName='+lineName)
    // window.location.href = "index.html?" + "accountTypeId="+2+"&openid=11"+"&nickname=22"+"&headimgurl=33"
}
function refreshBtn() {
    location.replace('site.html')
}